package com.xzp.dynamic_proxy;

/**
 * 动态代理测试
 *
 * @author briarbear
 * @blog https://briarbear.github.io
 * @create 2018-07-20-15:02
 */
public class HelloServiceMain {
    public static void main(String[] args) {
        HelloServiceProxy helloHandler = new HelloServiceProxy();
        HelloService proxy = (HelloService) helloHandler.bind(new HelloServiceImpl());
        proxy.sayHello("xiongzp08");
        System.err.println(proxy.getClass());
    }
}
